package com.baseweb.webadmin.core.model.bvo;

import com.baseweb.webadmin.core.model.pojo.ByUserBizProduct;
import com.baseweb.webadmin.core.model.pojo.ByUserExample;

public class ByUserBizProductBvo extends ByUserBizProduct{

    private UserInfoBvo userInfoBvo;

    public static ByUserBizProductBvo copyFrom(ByUserBizProduct byUserBizProduct, UserInfoBvo userInfoBvo) {
        ByUserBizProductBvo bvo = new ByUserBizProductBvo();
        bvo.setId(byUserBizProduct.getId());
        bvo.setUserId(byUserBizProduct.getUserId());
        bvo.setProductType(byUserBizProduct.getProductType());
        bvo.setChannelId(byUserBizProduct.getChannelId());

        bvo.setOriginalPrice(byUserBizProduct.getOriginalPrice());
        bvo.setCurrentPrice(byUserBizProduct.getCurrentPrice());

        bvo.setImgUrl(byUserBizProduct.getImgUrl());
        bvo.setName(byUserBizProduct.getName());
        bvo.setDescn(byUserBizProduct.getDescn());
        bvo.setStatus(byUserBizProduct.getStatus());

        bvo.setCoins(byUserBizProduct.getCoins());
        bvo.setUnit(byUserBizProduct.getUnit());
        bvo.setDeposit(byUserBizProduct.getDeposit());

        bvo.setCreateTime(byUserBizProduct.getCreateTime());
        bvo.setUpdateTime(byUserBizProduct.getUpdateTime());
        bvo.setUserInfoBvo(userInfoBvo);
        return bvo;
    }

    public UserInfoBvo getUserInfoBvo() {
        return userInfoBvo;
    }

    public void setUserInfoBvo(UserInfoBvo userInfoBvo) {
        this.userInfoBvo = userInfoBvo;
    }

}
